#pragma once
#include"head.h"
#define MAX_NODE 64
class BookType {
private:
	string code;
	string name;
	string parentCode;
public:
	BookType() {
		parent = NULL;
	}
	void setCode(string code);
	string getCode();
	void setName(string name);
	string getName();
	void setParentCode(string parentCode);
	string getParentCode();
	BookType *parent;
};
class TypeTree {
public:
	BookType types[MAX_NODE];
	int num;
};